package cn.cool.middleware.biz_exception_retry.infra.mysql;

import cn.cool.middleware.biz_exception_retry.infra.mysql.po.BizExceptionRetryModulePO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

@Mapper
public interface BizExceptionRetryModuleMapper {
    int insert(String bizExceptionRetryModule);

    int tryLock(@Param("exceptionModule") String exceptionModule, @Param("oldLockTime") Date oldLockTime);

    int unLock(@Param("exceptionModule") String exceptionModule);

    BizExceptionRetryModulePO selectByExceptionModule(@Param("exceptionModule") String exceptionModule);
}
